home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac-Source 1994 July
/
Mac-Source_July_1994.iso
/
C and C++
/
Libraries
/
usr (gcc 1.37 libs)
/
mac
/
console.s
< prev
next >
Wrap
Text File
|
1993-12-13
|
17KB
|
1,103 lines
# Compiled by MPW GCC 1.37.1r14
.data
_LC#0:
.byte $0
.byte $0
.text
.even
.globl _SetUpWindows
_SetUpWindows:
link a6,#-124
moveml d3/a2,sp@-
movel a6,d3
addl #-124,d3
movel d3,sp@-
.word 43119 ; OpenPort
movel d3,sp@-
.word 43123 ; SetPort
movew #4,sp@-
.word 43143 ; TextFont
movew #9,sp@-
.word 43146 ; TextSize
pea a6@(-16)
.word 43147 ; GetFontInfo
movel d3,sp@-
.word 43133 ; ClosePort
clrw a6@(-6)
movew #32,a6@(-8)
movew a6@(-12),d0
mulsw #82,d0
addw a6@(-6),d0
addw #15,d0
movew d0,a6@(-2)
movew a6@(-16),a0
addw a6@(-14),a0
addw a6@(-10),a0
movel a0,d0
moveql #25,d1
moveml a0/a1,sp@-
movel d1,sp@-
movel d2,sp@-
jsr ULMULT
movel sp@+,d2
movel sp@+,d1
moveml sp@+,a0/a1
addw a6@(-8),d0
addw #15,d0
movew d0,a6@(-4)
pea a6@(-8)
movew _qd+92,a0
subw a6@(-2),a0
movel a0,d0
bge _L#2
addql #1,d0
_L#2:
asrl #1,d0
movew d0,sp@-
movew _qd+90,a0
subw a6@(-4),a0
movel a0,d0
bge _L#3
addql #1,d0
_L#3:
asrl #1,d0
movew d0,sp@-
.word 43176 ; OffsetRect
subql #4,sp
pea _crt_wRecord
movel a6,d3
subql #8,d3
movel d3,sp@-
movel a6@(8),sp@-
moveb #1,sp@-
clrw sp@-
movel #-1,sp@-
moveb #1,sp@-
clrl sp@-
.word 43283 ; NewWindow
movel sp@,d0
movel d0,_crt_myWindow
movel d0,sp@-
.word 43123 ; SetPort
movew #4,sp@-
.word 43143 ; TextFont
movew #9,sp@-
.word 43146 ; TextSize
lea _qd+202,a2
movel a2@,a0
movel a0@(16),a6@(-8)
movel a0@(20),a6@(-4)
movew a6@(-2),d1
addw #65521,d1
movew d1,a6@(-6)
addqw #1,a6@(-2)
addw #65522,a6@(-4)
addw #65535,a6@(-8)
subql #4,sp
movel _crt_myWindow,sp@-
movel d3,sp@-
pea _LC#0
moveb #1,sp@-
clrw sp@-
clrw sp@-
clrw sp@-
movew #16,sp@-
clrl sp@-
.word 43348 ; NewControl
movel sp@,d0
movel d0,_vScroll
movel a2@,a0
movel a0@(16),a6@(-8)
movel a0@(20),a6@(-4)
addw #65521,a6@(-2)
addw #65521,a6@(-4)
movel d3,sp@-
movew #4,sp@-
movew #4,sp@-
.word 43177 ; InsetRect
subql #4,sp
movel d3,sp@-
movel d3,sp@-
.word 43070 ; TEStylNew
movel sp@,d0
movel d0,a0
movel a0,_crt_TEH
movel a0@,a1
movel a2@,a2
movel a2@(16),a1@(8)
movel a2@(20),a1@(12)
movel a0@,a1
addw #65521,a1@(14)
movel a0@,a1
addw #65521,a1@(12)
movel a0@,d1
addql #8,d1
movel d1,sp@-
movew #4,sp@-
movew #4,sp@-
.word 43177 ; InsetRect
movel _crt_TEH,a0
movel a0@,a1
movew a1@(12),a2
subw a1@(8),a2
movew a1@(24),d0
extl d0
movel a2,d1
moveml a0/a1,sp@-
movel d2,sp@-
movel d0,sp@-
movel d1,d0
movel sp@,d1
jsr SLDIVT
movel d0,d1
movel sp@+,d0
movel sp@+,d2
moveml sp@+,a0/a1
movel d1,_linesInFolder
movel a0@,a1
movew a1@(24),d0
extl d0
moveml a0/a1,sp@-
movel d1,sp@-
movel d2,sp@-
jsr ULMULT
movel sp@+,d2
movel sp@+,d1
moveml sp@+,a0/a1
addw a1@(8),d0
movew d0,a1@(12)
movel a0@,a1
movew a1@(14),a1@(6)
movel a0,sp@-
.word 43472 ; TECalText
moveml a6@(-132),d3/a2
unlk a6
rts
.byte $8c
.ascii "SetUpWindows"
.byte $0
.word 0
.even
.globl _AdjustText
_AdjustText:
link a6,#0
movel a2,sp@-
movel _crt_TEH,a0
movel a0@,a0
movew a0@(8),a2
subw a0@,a2
subql #2,sp
movel _vScroll,sp@-
.word 43360 ; GetCtlValue
movew sp@,d0
movew d0,d0
movel _crt_TEH,a1
movel a1@,a0
mulsw a0@(24),d0
subl a2,d0
negl d0
addqw #2,sp
beq _L#5
clrw sp@-
movew d0,sp@-
movel a1,sp@-
.word 43485 ; TEScroll
movel a6@(-4),a2
unlk a6
rts
.byte $8a
.ascii "AdjustText"
.byte $0
.word 0
.data
.even
_LC#1:
.word 0
.word 0
.word 1024
.word 1024
.text
.even
.globl _DoMouseDown
_DoMouseDown:
link a6,#-36
moveml d3/d4/a2/a3/a4,sp@-
movel a6@(8),d0
movel a6@(12),a3
movel a6@(16),a2
cmpl #3,d0
beq _L#24
bgt _L#35
cmpl #1,d0
beq _L#14
cmpl #2,d0
beq _L#15
bra _L#6
_L#35:
cmpl #5,d0
beq _L#18
bgt _L#36
cmpl #4,d0
beq _L#16
bra _L#6
_L#36:
cmpl #6,d0
bne _L#6
beq _L#6
cmpl _crt_myWindow,a3
bne _L#9
subql #2,sp
movel _crt_myWindow,sp@-
movel a2@(10),sp@-
.word 43294 ; TrackGoAway
moveb sp@,d0
addqw #2,sp
beq _L#6
movel _crt_myWindow,sp@-
.word 43286 ; HideWindow
clrl sp@-
movel _crt_TEH,a0
movel a0@,a1
movew a1@(60),a4
movel a4,sp@-
movel a0,sp@-
.word 43473 ; TESetSelect
movel _crt_TEH,sp@-
.word 43479 ; TEDelete
movel _crt_TEH,a0
movel a0@,a1
movew a1@(94),a2
subl _linesInFolder,a2
tstw a1@(60)
ble _L#11
movel a1@(62),a0
movew a1@(60),a1
movel a0@,a0
moveb a0@(-1,a1:l),d1
cmpb #10,d1
bne _L#11
addqw #1,a2
_L#11:
movel _vScroll,sp@-
cmpw #0,a2
ble _L#12
movew a2,d0
bra _L#13
_L#12:
clrw d0
_L#13:
movew d0,sp@-
.word 43365 ; SetCtlMax
bra _L#6
_L#14:
subql #4,sp
movel a2@(10),sp@-
.word 43325 ; MenuSelect
movel sp@,d0
movel d0,sp@-
jsr _DoCommand
bra _L#6
_L#15:
movel a2,sp@-
movel a3,sp@-
.word 43443 ; SystemClick
bra _L#6
_L#16:
tstl _crt_myWindow
beq _L#6
cmpl _crt_myWindow,a3
bne _L#6
lea _LC#1,a0
movel a0@+,a6@(-8)
movel a0@,a6@(-4)
movel a3,sp@-
movel a2@(10),sp@-
pea a6@(-8)
.word 43301 ; DragWindow
bra _L#6
_L#18:
tstl _crt_myWindow
beq _L#6
cmpl _crt_myWindow,a3
bne _L#6
movel a2@(10),d3
pea a6@(-28)
.word 43124 ; GetPort
movel a3,sp@-
.word 43123 ; SetPort
movel a3@(16),a6@(-16)
movel a3@(20),a6@(-12)
movew a6@(-12),d1
addw #65520,d1
movew d1,a6@(-16)
movel a6,d4
addl #-24,d4
movel d4,sp@-
movew #80,sp@-
movew #80,sp@-
lea _qd+92,a0
movew a0@,sp@-
movew a0@(-2),sp@-
.word 43175 ; SetRect
subql #4,sp
movel a3,sp@-
movel d3,sp@-
movel d4,sp@-
.word 43307 ; GrowWindow
movel sp@,d0
movel d0,d3
addqw #4,sp
beq _L#6
movel a3,sp@-
subql #2,sp
movel d3,sp@-
.word 43115 ; LoWord
movew sp@,d0
addqw #2,sp
movew d0,sp@-
subql #2,sp
movel d3,sp@-
.word 43114 ; HiWord
movew sp@,d0
addqw #2,sp
movew d0,sp@-
clrb sp@-
.word 43293 ; SizeWindow
pea a3@(16)
.word 43304 ; InvalRect
movel _crt_TEH,a0
movel a0@,a1
movel a3@(16),a1@(8)
movel a3@(20),a1@(12)
movel a0@,a1
addw #65521,a1@(14)
movel a0@,a1
addw #65521,a1@(12)
movel a0@,d1
addql #8,d1
movel d1,sp@-
movew #4,sp@-
movew #4,sp@-
.word 43177 ; InsetRect
movel _crt_TEH,a0
movel a0@,a1
movew a1@(12),a2
subw a1@(8),a2
movew a1@(24),d0
extl d0
movel a2,d1
moveml a0/a1,sp@-
movel d2,sp@-
movel d0,sp@-
movel d1,d0
movel sp@,d1
jsr SLDIVT
movel d0,d1
movel sp@+,d0
movel sp@+,d2
moveml sp@+,a0/a1
movel d1,_linesInFolder
movel a0@,a1
movew a1@(24),d0
extl d0
moveml a0/a1,sp@-
movel d1,sp@-
movel d2,sp@-
jsr ULMULT
movel sp@+,d2
movel sp@+,d1
moveml sp@+,a0/a1
addw a1@(8),d0
movew d0,a1@(12)
movel a0@,a1
movew a1@(14),a1@(6)
movel a0,sp@-
.word 43472 ; TECalText
pea a6@(-16)
.word 43171 ; EraseRect
movel _vScroll,sp@-
movew a3@(22),d1
addw #65521,d1
movew d1,sp@-
movew a3@(16),d1
addw #65535,d1
movew d1,sp@-
.word 43353 ; MoveControl
movel _vScroll,sp@-
movew #16,sp@-
movew a3@(20),d0
subw a3@(16),d0
addw #65523,d0
movew d0,sp@-
.word 43356 ; SizeControl
movel _vScroll,a0
movel a0@,a0
movel a0@(8),a6@(-24)
movel a0@(12),a6@(-20)
movel d4,sp@-
.word 43306 ; ValidRect
movel _crt_TEH,a0
movel a0@,a1
movew a1@(94),a2
subl _linesInFolder,a2
tstw a1@(60)
ble _L#21
movel a1@(62),a0
movew a1@(60),a1
movel a0@,a0
moveb a0@(-1,a1:l),d1
cmpb #10,d1
bne _L#21
addqw #1,a2
_L#21:
movel _vScroll,sp@-
cmpw #0,a2
ble _L#22
movew a2,d0
bra _L#23
_L#22:
clrw d0
_L#23:
movew d0,sp@-
.word 43365 ; SetCtlMax
jsr _AdjustText
movel a6@(-28),sp@-
bra _L#37
_L#24:
subql #4,sp
.word 43300 ; FrontWindow
movel sp@,d0
addqw #4,sp
cmpl a3,d0
beq _L#25
movel a3,sp@-
.word 43295 ; SelectWindow
bra _L#6
_L#25:
tstl _crt_myWindow
beq _L#6
cmpl _crt_myWindow,a3
bne _L#6
pea a6@(-32)
.word 43124 ; GetPort
movel a3,sp@-
.word 43123 ; SetPort
pea a2@(10)
.word 43121 ; GlobalToLocal
subql #2,sp
movel a2@(10),sp@-
movel a3,sp@-
pea a6@(-36)
.word 43372 ; FindControl
movew sp@,d0
movew d0,a0
addqw #2,sp
cmpw #0,a0
bne _L#28
subql #2,sp
movel a2@(10),sp@-
movel _crt_TEH,a0
movel a0@,d1
addql #8,d1
movel d1,sp@-
.word 43181 ; PtInRect
moveb sp@,d0
addqw #2,sp
beq _L#30
movel a2@(10),sp@-
btst #1,a2@(14)
sne d0
andb #1,d0
moveb d0,sp@-
movel _crt_TEH,sp@-
.word 43476 ; TEClick
bra _L#30
_L#28:
cmpl #129,a0
bne _L#31
subql #2,sp
movel a6@(-36),sp@-
movel a2@(10),sp@-
clrl sp@-
.word 43368 ; TrackControl
jsr _AdjustText
bra _L#38
_L#31:
subql #2,sp
movel a6@(-36),sp@-
movel a2@(10),sp@-
clrl sp@-
.word 43368 ; TrackControl
_L#38:
addqw #2,sp
_L#30:
movel a6@(-32),sp@-
_L#37:
.word 43123 ; SetPort
_L#6:
moveml a6@(-56),d3/d4/a2/a3/a4
unlk a6
rts
.byte $8b
.ascii "DoMouseDown"
.word 0
.even
.globl _ShowSelect
_ShowSelect:
link a6,#0
movel a2,sp@-
movel _crt_TEH,a0
movel a0@,a1
movew a1@(94),a2
subl _linesInFolder,a2
tstw a1@(60)
ble _L#40
movel a1@(62),a0
movew a1@(60),a1
movel a0@,a0
moveb a0@(-1,a1:l),d2
cmpb #10,d2
bne _L#40
addqw #1,a2
_L#40:
movel _vScroll,sp@-
cmpw #0,a2
ble _L#41
movew a2,d0
bra _L#42
_L#41:
clrw d0
_L#42:
movew d0,sp@-
.word 43365 ; SetCtlMax
jsr _AdjustText
subql #2,sp
movel _vScroll,sp@-
.word 43360 ; GetCtlValue
movew sp@,d0
extl d0
movel d0,d1
addl _linesInFolder,d1
movel _crt_TEH,a0
movel a0@,a0
asll #1,d0
addqw #2,sp
movew a0@(96,d0:l),d2
cmpw a0@(32),d2
bgt _L#44
movel d1,d0
asll #1,d0
movew a0@(96,d0:l),d2
cmpw a0@(32),d2
bgt _L#43
_L#44:
clrl d1
bra _L#45
_L#47:
addql #1,d1
_L#45:
movel _crt_TEH,a0
movel a0@,a0
movel d1,d0
asll #1,d0
movew a0@(96,d0:l),d2
cmpw a0@(32),d2
ble _L#47
movel _vScroll,sp@-
movel _linesInFolder,d0
bge _L#49
addql #1,d0
_L#49:
asrl #1,d0
subw d0,d1
movew d1,sp@-
.word 43363 ; SetCtlValue
jsr _AdjustText
_L#43:
movel a6@(-4),a2
unlk a6
rts
.byte $8a
.ascii "ShowSelect"
.byte $0
.word 0
.data
_LC#2:
.byte $1
.byte $14
.byte $0
_LC#3:
.byte $9
.ascii "About ..."
.byte $0
_LC#4:
.byte $4
.ascii "File"
.byte $0
_LC#5:
.byte $6
.ascii "Quit/Q"
.byte $0
_LC#6:
.byte $4
.ascii "Edit"
.byte $0
_LC#7:
.ascii "0Undo/Z;-;Cut/X;Copy/C;Paste/V;Clear;Select All/A"
.byte $0
.text
.even
.globl _SetUpMenus
_SetUpMenus:
link a6,#0
moveml d3/a2,sp@-
subql #4,sp
movew #128,sp@-
pea _LC#2
.word 43313 ; NewMenu
movel sp@,d0
lea _myMenus,a2
movel d0,a2@
movel d0,sp@-
pea _LC#3
.word 43315 ; AppendMenu
movel a2@,sp@-
movel #1146246738,sp@-
.word 43341 ; AddResMenu
subql #4,sp
movew #129,sp@-
pea _LC#4
.word 43313 ; NewMenu
movel sp@,d0
movel d0,a2@(4)
movel d0,sp@-
pea _LC#5
.word 43315 ; AppendMenu
subql #4,sp
movew #130,sp@-
pea _LC#6
.word 43313 ; NewMenu
movel sp@,d0
addqw #8,a2
movel d0,a2@
movel d0,sp@-
pea _LC#7
.word 43315 ; AppendMenu
movel a2@,sp@-
movew #1,sp@-
.word 43322 ; DisableItem
clrl d3
addl #12,sp
_L#54:
lea _myMenus,a0
movel d3,d0
asll #2,d0
movel a0@(d0:l),sp@-
clrw sp@-
.word 43317 ; InsertMenu
addql #1,d3
cmpl #2,d3
ble _L#54
.word 43319 ; DrawMenuBar
moveml a6@(-8),d3/a2
unlk a6
rts
.byte $8a
.ascii "SetUpMenus"
.byte $0
.word 0
.even
.globl _DoCommand
_DoCommand:
link a6,#-256
moveml d3/a2,sp@-
movel a6@(8),d3
subql #2,sp
movel d3,sp@-
.word 43115 ; LoWord
movew sp@,d0
movew d0,a2
addqw #2,sp
subql #2,sp
movel d3,sp@-
.word 43114 ; HiWord
movew sp@,d0
addqw #2,sp
cmpw #129,d0
beq _L#59
bgt _L#73
cmpw #128,d0
beq _L#57
bra _L#56
_L#73:
cmpw #130,d0
beq _L#60
bra _L#56
_L#57:
lea _myMenus,a0
tstl a0@
beq _L#59
movel a0@,sp@-
movew a2,sp@-
movel a6,d3
addl #-256,d3
movel d3,sp@-
.word 43334 ; GetItem
subql #2,sp
movel d3,sp@-
.word 43446 ; OpenDeskAcc
movel _crt_myWindow,sp@-
.word 43123 ; SetPort
addqw #2,sp
bra _L#56
_L#59:
.word 43508 ; ExitToShell
bra _L#56
_L#60:
subql #2,sp
movew a2,d1
addw #65535,d1
movew d1,sp@-
.word 43458 ; SystemEdit
moveb sp@,d0
addqw #2,sp
tstb d0
bne _L#56
cmpl #5,a2
beq _L#65
bgt _L#70
cmpl #3,a2
beq _L#63
cmpl #4,a2
beq _L#64
bra _L#62
_L#70:
cmpl #6,a2
beq _L#66
cmpl #7,a2
beq _L#67
bra _L#62
_L#63:
subql #4,sp
.word 43516 ; ZeroScrap
movel _crt_TEH,sp@-
.word 43478 ; TECut
addqw #4,sp
bra _L#62
_L#64:
subql #4,sp
.word 43516 ; ZeroScrap
movel _crt_TEH,sp@-
.word 43477 ; TECopy
addqw #4,sp
bra _L#62
_L#65:
movel _crt_TEH,sp@-
.word 43483 ; TEPaste
bra _L#62
_L#66:
movel _crt_TEH,sp@-
.word 43479 ; TEDelete
bra _L#62
_L#67:
clrl sp@-
movel #32767,sp@-
movel _crt_TEH,sp@-
.word 43473 ; TESetSelect
_L#62:
jsr _ShowSelect
_L#56:
clrw sp@-
.word 43320 ; HiliteMenu
moveql #1,d0
moveml a6@(-264),d3/a2
unlk a6
rts
.byte $89
.ascii "DoCommand"
.word 0
.even
.globl _MaintainCursor
_MaintainCursor:
link a6,#-8
movel d3,sp@-
tstl _crt_myWindow
beq _L#75
subql #4,sp
.word 43300 ; FrontWindow
movel sp@,d0
movel d0,d3
addqw #4,sp
cmpl _crt_myWindow,d3
bne _L#75
pea a6@(-4)
.word 43124 ; GetPort
movel d3,sp@-
.word 43123 ; SetPort
pea a6@(-8)
.word 43378 ; GetMouse
subql #2,sp
movel a6@(-8),sp@-
movel _crt_TEH,a0
movel a0@,d1
addql #8,d1
movel d1,sp@-
.word 43181 ; PtInRect
moveb sp@,d0
addqw #2,sp
beq _L#76
subql #4,sp
movew #1,sp@-
.word 43449 ; GetCursor
movel sp@,d0
movel d0,a0
movel a0@,sp@-
.word 43089 ; SetCursor
addqw #4,sp
bra _L#77
_L#76:
pea _qd+94
.word 43089 ; SetCursor
_L#77:
movel a6@(-4),sp@-
.word 43123 ; SetPort
_L#75:
movel a6@(-12),d3
unlk a6
rts
.byte $8e
.ascii "MaintainCursor"
.byte $0
.word 0
.even
.globl _test_inited
_test_inited:
link a6,#0
lea _qd+202,a0
tstl a0@
bne _L#79
movel a0,sp@-
.word 43118 ; InitGraf
.word 43262 ; InitFonts
.word 43282 ; InitWindows
.word 43312 ; InitMenus
.word 43468 ; TEInit
.word 43088 ; InitCursor
jsr _SetUpMenus
_L#79:
tstl _crt_myWindow
bne _L#80
movel a6@(8),sp@-
jsr _SetUpWindows
_L#80:
unlk a6
rts
.byte $8b
.ascii "test_inited"
.word 0
.data
_LC#8:
.byte $6
.ascii "StdErr"
.byte $0
_LC#9:
.byte $6
.ascii "StdOut"
.byte $0
.text
.even
.globl _cwrite
_cwrite:
link a6,#0
moveml d3/d4/d5,sp@-
movel a6@(12),d5
movel a6@(16),d4
cmpl #2,a6@(8)
bne _L#82
pea _LC#8
movel sp@+,d0
bra _L#83
_L#82:
pea _LC#9
movel sp@+,d0
_L#83:
movel d0,sp@-
jsr _test_inited
movel d4,d0
movel a0,d3
addqw #4,sp
bne _L#84
movel d5,d3
bra _L#85
_L#84:
bra _L#86
_L#85:
movel #32767,sp@-
movel #32767,sp@-
movel _crt_TEH,sp@-
.word 43473 ; TESetSelect
movel d3,sp@-
movel d4,sp@-
movel _crt_TEH,sp@-
.word 43486 ; TEInsert
cmpl d3,d5
beq _L#91
movel d3,a0
.word 40991 ; DisposPtr
_L#91:
movel d4,d0
moveml a6@(-12),d3/d4/d5
unlk a6
rts
.byte $86
.ascii "cwrite"
.byte $0
.word 0
.data
_LC#10:
.byte $5
.ascii "StdIn"
.byte $0
.text
.even
.globl _cgetc
_cgetc:
link a6,#-32
pea _LC#10
jsr _test_inited
addqw #4,sp
_L#93:
jsr _MaintainCursor
.word 43444 ; SystemTask
movel _crt_TEH,sp@-
.word 43482 ; TEIdle
subql #2,sp
movew #-1,sp@-
pea a6@(-16)
.word 43376 ; GetNextEvent
moveb sp@,d0
tstb d0
beq _L#96
movew a6@(-16),d0
cmpw #5,d0
beq _L#100
bgt _L#115
cmpw #1,d0
beq _L#98
cmpw #3,d0
beq _L#100
bra _L#93
_L#115:
cmpw #6,d0
beq _L#111
cmpw #8,d0
beq _L#107
bra _L#93
_L#98:
subql #2,sp
movel a6@(-6),sp@-
pea a6@(-28)
.word 43308 ; FindWindow
movew sp@,d0
pea a6@(-16)
movel a6@(-28),sp@-
extl d0
movel d0,sp@-
jsr _DoMouseDown
addl #14,sp
bra _L#93
_L#100:
movel a6@(-14),d0
movel d0,d1
movew a6@(-2),d0
btst #8,d0
beq _L#101
subql #4,sp
clrw d0
moveb d1,d0
movew d0,sp@-
.word 43326 ; MenuKey
movel sp@,d0
movel d0,sp@-
jsr _DoCommand
addqw #8,sp
bra _L#93
_L#101:
cmpb #10,d1
bne _L#103
moveql #13,d0
bra _L#92
_L#103:
cmpb #31,d1
bhi _L#105
clrw d0
moveb d1,d0
movew d0,sp@-
movel _crt_TEH,sp@-
.word 43484 ; TEKey
jsr _ShowSelect
bra _L#93
_L#105:
clrl d0
moveb d1,d0
bra _L#92
_L#107:
tstl _crt_myWindow
beq _L#93
movel a6@(-14),d0
cmpl _crt_myWindow,d0
bne _L#93
movew a6@(-2),d0
btst #0,d0
beq _L#109
movel _crt_TEH,sp@-
.word 43480 ; TEActivate
movel _vScroll,sp@-
.word 43351 ; ShowControl
bra _L#93
_L#109:
movel _crt_TEH,sp@-
.word 43481 ; TEDeactivate
movel _vScroll,sp@-
.word 43352 ; HideControl
bra _L#93
_L#111:
tstl _crt_myWindow
beq _L#93
movel a6@(-14),d0
cmpl _crt_myWindow,d0
bne _L#93
pea a6@(-32)
.word 43124 ; GetPort
movel _crt_myWindow,sp@-
.word 43123 ; SetPort
movel _crt_myWindow,sp@-
.word 43298 ; BeginUpdate
movel _crt_myWindow,d2
addl #16,d2
movel d2,sp@-
.word 43171 ; EraseRect
movel _crt_myWindow,sp@-
.word 43369 ; DrawControls
movel _crt_myWindow,sp@-
.word 43268 ; DrawGrowIcon
movel _crt_myWindow,d2
addl #16,d2
movel d2,sp@-
movel _crt_TEH,sp@-
.word 43475 ; TEUpdate
movel _crt_myWindow,sp@-
.word 43299 ; EndUpdate
movel a6@(-32),sp@-
.word 43123 ; SetPort
bra _L#93
unlk a6
rts
.byte $85
.ascii "cgetc"
.word 0
.lcomm _vScroll,4
.lcomm _myMenus,12
.lcomm _linesInFolder,4
.lcomm _crt_wRecord,156